package vn.appsmobi.ulti;

import android.content.Context;
import android.content.SharedPreferences;

public class AllMobileReference {

	public static final String REGISTER_GCM_STATE = "GCMState";
	public static final String PREFS_NAME = "MyPrefsFile";

	public static boolean getRegisterGCMState(Context context) {
		SharedPreferences pre = context.getSharedPreferences(PREFS_NAME, 0);
		return pre.getBoolean(REGISTER_GCM_STATE, false);
	}
	
	public static void saveRegisterGCMState(Context context) {
		SharedPreferences pre = context.getSharedPreferences(PREFS_NAME, 0);
		SharedPreferences.Editor editor = pre.edit();
		editor.putBoolean(REGISTER_GCM_STATE, true);
		editor.commit();
	}
}
